<script>
import { defineComponent, h } from 'vue'
import { useEditorCodeStore } from '../store/index'
import { renderComponent } from '../utils/index'

export default defineComponent({
  name: 'EditorStage',
  setup: () => {
    const editorCodeStore = useEditorCodeStore()

    return () => [h('div', {}, renderComponent(editorCodeStore.componentList))]
  }
})
</script>
